package com.hw.core.util;

import java.io.Serializable;
import java.util.List;

public class PageModel <T> implements Serializable{
    private Long totalElements;//总记录数
    private Integer number;//当前页
    private Integer totalPages;//总页数
    private Integer numberOfElements;//当前页记录数
    private List<T> Content;//集合

    public Long getTotalElements() {
        return totalElements;
    }

    public void setTotalElements(Long totalElements) {
        this.totalElements = totalElements;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(Integer totalPages) {
        this.totalPages = totalPages;
    }

    public Integer getNumberOfElements() {
        return numberOfElements;
    }

    public void setNumberOfElements(Integer numberOfElements) {
        this.numberOfElements = numberOfElements;
    }

    public List<T> getContent() {
        return Content;
    }

    public void setContent(List<T> content) {
        Content = content;
    }
}
